Skip to content

feat(registry): add stat#197

Merged
sadmann7 merged 12 commits intomainfrom
add-stat
Dec 1, 2025
Merged

feat(registry): add stat#197
sadmann7 merged 12 commits intomainfrom
add-stat

Conversation

@sadmann7
Copy link
Copy Markdown
Owner

@sadmann7 sadmann7 commented Dec 1, 2025

No description provided.

- Rename StatChange -> StatTrend for better clarity
- Rename StatAccessory -> StatIndicator for semantic accuracy
- Update all data-slot attributes to match new names
- Add StatSeparator component for content division
- Create comprehensive type definitions
- Add stat to registry-ui and registry-examples
- Create documentation with API reference
- Add stat-variants-demo showcasing indicator variants
- Add stat-layout-demo showcasing layout options
Copilot AI review requested due to automatic review settings December 1, 2025 03:44
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
diceui Ready Ready Preview Comment Dec 1, 2025 4:17am

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new stat component to the UI registry for displaying key metrics and statistics. The component provides a flexible card-based layout with support for indicators (icons/badges), trend information, separators, and descriptions. It also includes minor updates to the button component styling and key-value demo example.

  • Adds new stat component with multiple sub-components (Label, Indicator, Value, Trend, Separator, Description)
  • Includes comprehensive examples demonstrating variants, colors, and layout options
  • Updates button component to remove shadow-xs styling from some variants
  • Adds textarea to key-value component registry dependencies

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/types/docs/stat.ts TypeScript type definitions for all stat component props
docs/registry/registry-ui.ts Registry entry for stat component with dependencies
docs/registry/registry-examples.ts Registry entries for three stat demo examples
docs/registry/default/ui/stat.tsx Main stat component implementation with CVA variants
docs/registry/default/examples/stat-demo.tsx Primary demo showing indicators and dropdown integration
docs/registry/default/examples/stat-variants-demo.tsx Demo showcasing different indicator variants and colors
docs/registry/default/examples/stat-layout-demo.tsx Demo showing layout options with separators and descriptions
docs/public/r/styles/default/stat.json Registry JSON for stat component
docs/public/r/styles/default/stat-demo.json Registry JSON for stat demo example
docs/public/r/styles/default/stat-variants-demo.json Registry JSON for stat variants demo
docs/public/r/styles/default/stat-layout-demo.json Registry JSON for stat layout demo
docs/public/r/registry.json Global registry entries for stat component and examples
docs/public/r/index.json Index entry for stat component
docs/content/docs/components/stat.mdx Documentation page with installation and API reference
docs/components/ui/button.tsx Removes shadow-xs styling from default, destructive, and secondary variants; adds icon-sm and icon-lg size variants
docs/registry/default/examples/key-value-paste-demo.tsx Simplifies demo by removing explicit enablePaste prop and alternative format example
docs/public/r/styles/default/key-value.json Adds textarea to registry dependencies
docs/public/r/styles/default/key-value-paste-demo.json Updates example code to match simplified demo
docs/public/r/index.json Adds textarea to key-value dependencies
docs/registry/registry-ui.ts Adds textarea to key-value registry dependencies
docs/content/docs/components/key-value.mdx Updates title formatting from "Key-Value" to "Key Value"
docs/app/(lobby)/pg/page.tsx Updates playground to show stat demos instead of key-value demo
docs/registry/index.tsx Adds registry entries for stat component and examples with lazy loading

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sadmann7 sadmann7 merged commit d97a6bb into main Dec 1, 2025
7 of 8 checks passed
@sadmann7 sadmann7 deleted the add-stat branch December 1, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants